/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package dbHandler;

import java.sql.Connection;

/**
 *
 * @author Rick
 */
class DerbyDAOFactory extends DAOfactory {

    public static DerbyConfigeration derbyConfigeration;
    public static Connection conn;

    public DerbyDAOFactory() {
        derbyConfigeration = new DerbyConfigeration();
    }

    public static Connection createConnection(){
        conn = DerbyConfigeration.getConnection();
        return conn;
    }

    @Override
    public ContactInfoDAO getContactInfoDAO() {
        return new ContactInfoInator();
    }

    @Override
    public FamiliesDAO getFamiliesDAO() {
        return new FamilyInator();
    }

    @Override
    public GivesToDAO getGivesToDAO() {
        return new GivesToInater();
    }

    @Override
    public MinistryGroupDAO getMinistryGroupDAO() {
        return new MinistryGroupInator();
    }

    @Override
    public ParishionersDAO getParishionersDAO() {
        return new ParishionersInator();
    }

    @Override
    public PledgesDAO getPledgesDAO() {
        return new PledgesInator();
    }

}
